﻿@model Forest.Cat.Web.Models.CompanyModel
@using Forest.Web.Framework
@{
    ViewBag.Title = "公司信息";
    Layout = "~/Views/Shared/_NormalRoot.cshtml";
}
<div class="main_result">
    @*所有职位 &gt; <b>对日外包软件工程师</b>*@</div>
<div class="company_content">
    <div class="company_content_left">
        <div class="company_care">
            <div class="company_care_infor">
                <div class="companys_name">
                    <h3>
                        @Model.CompanyName @Html.Action("SavedCompanyView", "JobHunting", new { id = Model.Id })
                    </h3>
                    <p>
                       
                        @if(!string.IsNullOrWhiteSpace(Model.IndustryName)){
                            <b>公司行业：</b>@Model.IndustryName @Html.Raw("&nbsp;&nbsp;  ");
                            
                        }
                         
                          @if (!string.IsNullOrWhiteSpace(Model.CompanyTypeName)) {
                              <b>公司性质：</b>@Model.CompanyTypeName @Html.Raw("&nbsp;&nbsp;  ");
                          }   
                                                                        
                        @{ if ( Model.Employees > 0) {
                                <b>规模：@Model.Employees</b>
                           }   
                        }
                    </p>
                </div>
                <div class="companys_logo">
                    @if (Model.CompanyLogoId.HasValue) { 
                        <a href="@Model.WebSite">
                            <img width="160px" height="90px" src="@Url.Action("GetImage", new { Id = Model.CompanyLogoId })" />
                        </a>
                    }
                </div>
                <div class="cr">
                </div>
            </div>
            <div class="company_care_text">
                <p>
                    @Html.Raw(Forest.Core.Html.HtmlHelper.ConvertPlainTextToHtml(Model.Overview))</p>
                <p>
                    @Html.Raw(Forest.Core.Html.HtmlHelper.ConvertPlainTextToHtml(Model.Business))</p>
            </div>
            <div class="company_care_photo">
                <ul class="clearfix">
                    @foreach (var id in Model.PictureIdList) { 
                        <li>
                            <img width="200px" height="120px" src="@Url.Action("GetImage", new { Id = id })" /></li>
                    }
                </ul>
            </div>
        </div>
        <div class="company_Recruitment">
            <div class="company_Recruitment_title">
                招贤纳士</div>
            <div class="company_Recruitment_box">
                @Html.Partial("JobList", Model.JobPositionList)
            </div>
        </div>
    </div>
    @*<div class="company_content_right">
        <div class="company_content_title">
            联系我们</div>
        <div class="company_content_box">
            <ul>
                @if (!String.IsNullOrWhiteSpace(Model.Address))
                {
                    <li>
                        <h3>
                            地 址：</h3>
                        <p>
                            @Model.Address</p>
                    </li>
                }
                @if (!String.IsNullOrWhiteSpace(Model.PostalCode))
                {
                    <li>
                        <h3>
                            邮 编：</h3>
                        <p>
                            @Model.PostalCode</p>
                    </li>
                }
                @if (!String.IsNullOrWhiteSpace(Model.Tel))
                {
                    <li>
                        <h3>
                            电 话：</h3>
                        <p>
                            @Model.Tel</p>
                    </li>
                }
                @if (!String.IsNullOrWhiteSpace(Model.Fax))
                {
                    <li>
                        <h3>
                            传 真：</h3>
                        <p>
                            @Model.Fax</p>
                    </li>
                }
                @if (!String.IsNullOrWhiteSpace(Model.Email))
                { 
                    <li>
                        <h3>
                            电子邮件：</h3>
                        <p>
                            <a href="mailto:@Model.Email">@Model.Email</a>
                        </p>
                    </li>
                }
                @if (!String.IsNullOrWhiteSpace(Model.WebSite))
                {
                    <li>
                        <h3>
                            网 站：</h3>
                        <p>
                            <a target="_blank" href="@Model.WebSite">@Model.WebSite</a>
                        </p>
                    </li>
                }
            </ul>
        </div>
    </div>*@
    <div class="cr">
    </div>
</div>
